package org.example.proxy.consProxy;

public class Client {

    public static void main(String[] args) {
        IGamePlayer player=new GamePlayer("张三");
//        IGamePlayer proxy=new GamePlayerProxy(player);
//
//        proxy.login("dd","ss");
//        player.killBoss();
//        player.upgrade();
        IGamePlayer proxy = player.getProxy();
        proxy.login("dd","ss");
        player.killBoss();
        player.upgrade();
    }
}
